package com.example.jdbcdemo.mapper;

import com.example.jdbcdemo.pojo.Storage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StorageMapper {
    List<Storage> queryStorageList();//返回仓库列表

    Storage queryStorageById(int id);//通过id查询

    int addStorage(Storage storage);//增

    int updateStorage(Storage storage);//改

    int deleteStorage(int id);//删
}
